﻿namespace EasyGo.Common.Commands
{
    using System;
    using System.Collections.Generic;
    using System.ComponentModel.DataAnnotations;

    public abstract class CommandBase
    {
        public void Validate()
        {
            Validator.ValidateObject(this, new ValidationContext(this), true);
            this.PerformValidation();
        }

        public virtual void PerformValidation()
        {
        }
    }
}
